/**
 * Created with IntelliJ IDEA.
 * Description:模拟实现 LinkedList（充实的一天！！！）
 * User: dings
 * Date: 2024-07-09
 * Time: 19:10
 */
public class Test {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();

        /*myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);*/

        myLinkedList.addLast(1);
        myLinkedList.addLast(99);
        myLinkedList.addLast(11);
        myLinkedList.addLast(99);
        myLinkedList.addLast(21);
        myLinkedList.addLast(99);
        myLinkedList.addLast(112);
        //myLinkedList.addIndex(4,1);

        //myLinkedList.display();

        myLinkedList.removeAllKey(99);

        myLinkedList.display();

        //System.out.println(myLinkedList.contains(1001));
    }
}
